package com.zzc.legou.item.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzc.legou.core.po.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @file 品牌
 */

@Data
@TableName("brand_")
@AllArgsConstructor
@NoArgsConstructor
public class Brand extends BaseEntity {
    /**
     * 实体编号（唯一标识）
     */
    @TableId(value = "id_", type = IdType.AUTO)
    protected Long id;
    @TableField("name_")
    private String name;    // 名称
    @TableField("image_")
    private String image;    // 图片
    @TableField("letter_")
    private String letter; //首字母

    @TableField(exist = false)
    private Long[] categoryIds; //瞬时属性，品牌的所属分类如[1,2,3,4]
}
